<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:include="layout :: htmlhead" th:with="title='流程管理'"></head>
	<style>
		img{
	width:400px;
	height:400px;
}
p{
	font-size:12px;
}
</style>
	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<!--头-->
			<div th:replace="fragments/head :: header"></div>

			<div class="layui-body" style="margin: 1%">
				<div class="demoTable">
				</div>

				<div id="permTable" class="grid">
				</div>

				申请信息
				<hr class="layui-bg-cyan" />
<form th:action="@{/park/update}" method="post" enctype="multipart/form-data">
				<div style="padding: 20px; background-color: rgb(242, 242, 242);">
					<div class="layui-row layui-col-space15">
						<div class="layui-col-md6">
							<div class="layui-card">
								<div class="layui-card-header">基本信息
									<b th:switch="${applyinfo.state}">
										<span th:case="0" class="layui-badge layui-bg-gray">初始</span>
										<span th:case="1" class="layui-badge layui-bg-green">审核中</span>
										<span th:case="2" class="layui-badge layui-bg-blue">审核完成</span>
										<span th:case="3" class="layui-badge layui-bg-orange">删除</span>
									</b>
								</div>
								<div class="layui-card-body">
									<p>
									<input name="name" id="name" th:value="${applyinfo.name}" />
									</p>
									<p>
									<input name="address" id="address" th:value="${applyinfo.address}" />
									</p>
									<p>
									受理类型
									</p>
									<p>
									<select name="applyType" id="applyType" lay-filter="type" lay-verify="required">
								        <option value=""></option>
								        <option th:if="${applyinfo.applyType == 1}" th:selected="selected" value="1">新增</option>
								        <option th:if="${applyinfo.applyType == 2}" th:selected="selected" value="2">年审</option>
								     </select></p>
									<p>停车场类型</p>
									<p>
									<select name="deptId" id="deptId" lay-filter="deptId" lay-verify="required" >
								         <option value=""></option>
								       	 <option th:selected="${dept.deptCode == applyinfo.deptId}"  th:each="dept:${deptList}" th:value="${dept.deptCode}" th:text="${dept.deptName}"></option>
								      </select>
								      </p>
									<br />
									<p><input type="submit" class="layui-btn layui-btn-sm" th:value="确认修改"/></p>
								</div>
							</div>
						</div>

						<div class="layui-col-md6">
							<div class="layui-card">
								<div class="layui-card-header">其他信息</div>
								<div class="layui-card-body">

									<table class="layui-table" lay-size="sm">
										<tr>
											<td>法人</td>
											<td><input name="boss" id="boss" th:value="${applyinfo.boss}" /></td>
											<td>法人电话</td>
											<td><input name="bossPhone" id="bossPhone" th:value="${applyinfo.bossPhone}" /></td>
										</tr>
										<tr>
											<td>负责人</td>
											<td><input name="header" id="header" th:value="${applyinfo.header}" /></td>
											<td>负责人电话</td>
											<td><input name="headerPhone" id="headerPhone" th:value="${applyinfo.headerPhone}" /></td>
										</tr>
									</table>
									<table class="layui-table" lay-size="sm">
										<thead>
											<tr>
												<td>总面积</td>
												<td>总数</td>
												<td>地下</td>
											</tr>
										</thead>
										<tr>
											<td><input name="parkArea" id="parkArea" th:value="${applyinfo.parkArea}" /></td>
											<td><input name="parkSum" id="parkSum" th:value="${applyinfo.parkSum}" /></td>
											<td><input name="underground" id="underground" th:value="${applyinfo.underground}" /></td>
										</tr>
									</table>
									<table>
										<thead>
											<tr>
												<td>地上</td>
												<td>院内</td>
												<td>机械</td>
											</tr>
										</thead>
										<tr>
											<td><input name="ground" id="ground" th:value="${applyinfo.ground}" /></td>
											<td><input name="yard" id="yard" th:value="${applyinfo.yard}" /></td>
											<td><input name="machine" id="machine" th:value="${applyinfo.machine}" /></td>
										</tr>
									</table>
									<p>备注<input name="infoId" id="infoId" type="text" th:value="${applyinfo.id}" /></p>
									<p><textarea id="remark" name="remark" th:value="${applyinfo.remark}" cols="100" rows="10"></textarea></p>

								</div>
							</div>
						</div>

						<div class="layui-col-md12">
							<div class="layui-card">
								<div class="layui-card-header">资质图片</div>
								<div class="layui-card-body">


									<div style="padding: 20px; background-color: #F2F2F2;">
										<div class="layui-row layui-col-space15">
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">营业执照</div>
													<div class="layui-card-body">
														<input name="yyzz" id="yyzz" type="file" />
														<input name="imageId" id="imageId" type="text" th:value="${applyimage.id}" />
														<img th:src="'data:image/png;base64,'+${applyimage.yyzz}" alt="营业执照" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">税务登记证</div>
													<div class="layui-card-body">
														<input name="swdjz" id="swdjz" type="file" />
														<img th:src="${applyimage.swdjz} ?'data:image/png;base64,'+${applyimage.swdjz} :'/images/nan.png'" alt="税务登记证" />
													</div>
												</div>
											</div>

											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">法人身份证</div>
													<div class="layui-card-body">
														<input name="frsfzj" id="frsfzj" type="file" />
														<img th:src="${applyimage.frsfzj} ?'data:image/png;base64,'+${applyimage.frsfzj} :'/images/nan.png'" alt="法人身份证" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">经办人身份证</div>
													<div class="layui-card-body">
														<input name="jbrsfzj" id="jbrsfzj" type="file" />
														<img th:src="${applyimage.jbrsfzj} ?'data:image/png;base64,'+${applyimage.jbrsfzj} :'/images/nan.png'"
														 alt="经办人身份证" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">土地证</div>
													<div class="layui-card-body">
														<input name="tdz" id="tdz" type="file" />
														<img th:src="${applyimage.tdz} ?'data:image/png;base64,'+${applyimage.tdz} :'/images/nan.png'" alt="土地证" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">土地租赁合同1</div>
													<div class="layui-card-body">
														<input name="tdzlht1" id="tdzlht1" type="file" />
														<img th:src="${applyimage.tdzlht1} ?'data:image/png;base64,'+${applyimage.tdzlht1} :'/images/nan.png'"
														 alt="土地租赁合同1" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">土地租赁合同2</div>
													<div class="layui-card-body">
														<input name="tdzlht2" id="tdzlht2" type="file" />
														<img th:src="${applyimage.tdzlht2} ?'data:image/png;base64,'+${applyimage.tdzlht2} :'/images/nan.png'"
														 alt="土地租赁合同2" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">土地租赁合同3</div>
													<div class="layui-card-body">
														<input name="tdzlht3" id="tdzlht3" type="file" />
														<img th:src="${applyimage.tdzlht3} ?'data:image/png;base64,'+${applyimage.tdzlht3} :'/images/nan.png'"
														 alt="土地租赁合同3" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">平面图</div>
													<div class="layui-card-body">
														<input name="pmt" id="pmt" type="file" />
														<img th:src="${applyimage.pmt} ?'data:image/png;base64,'+${applyimage.pmt} :'/images/nan.png'" alt="平面图" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">设施设备清单</div>
													<div class="layui-card-body">
														<input name="sbqd" id="sbqd" type="file" />
														<img th:src="${applyimage.sbqd} ?'data:image/png;base64,'+${applyimage.sbqd} :'/images/nan.png'" alt="设施设备清单" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">收费标准</div>
													<div class="layui-card-body">
														<input name="sfbz" id="sfbz" type="file" />
														<img th:src="${applyimage.sfbz} ?'data:image/png;base64,'+${applyimage.sfbz} :'/images/nan.png'" alt="收费标准" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">停放制度</div>
													<div class="layui-card-body">
														<input name="tfzd" id="tfzd" type="file" />
														<img th:src="${applyimage.tfzd} ?'data:image/png;base64,'+${applyimage.tfzd} :'/images/nan.png'" alt="停放制度" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">安全制度</div>
													<div class="layui-card-body">
														<input name="aqzd" id="aqzd" type="file" />
														<img th:src="${applyimage.aqzd} ?'data:image/png;base64,'+${applyimage.aqzd} :'/images/nan.png'" alt="安全制度" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">防汛制度</div>
													<div class="layui-card-body">
														<input name="fxzd" id="fxzd" type="file" />
														<img th:src="${applyimage.fxzd} ?'data:image/png;base64,'+${applyimage.fxzd} :'/images/nan.png'" alt="防汛制度" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">消防管理制度</div>
													<div class="layui-card-body">
														<input name="xfzd" id="xfzd" type="file" />
														<img th:src="${applyimage.xfzd} ?'data:image/png;base64,'+${applyimage.xfzd} :'/images/nan.png'" alt="消防管理制度" />
													</div>
												</div>
											</div>
											<div class="layui-col-md6">
												<div class="layui-card">
													<div class="layui-card-header">智慧信息平台</div>
													<div class="layui-card-body">
														<input name="zhpt" id="zhpt" type="file" />
														<img th:src="${applyimage.zhpt} ?'data:image/png;base64,'+${applyimage.zhpt} :'/images/nan.png'" alt="智慧信息平台" />
													</div>
												</div>
											</div>




										</div>
									</div>
								</div>

							</div>

						</div>
					</div>

				</div>
</form>
</div>
				<!--底部-->
				<div th:replace="fragments/footer :: footer"></div>
			</div>
	</body>
</html>

